import Vue from 'vue'
import Vuex from 'vuex'
// 导入模块
import user from './modules/user'
import setting from './modules/setting'
import getters from './getters'

Vue.use(Vuex)

const store = new Vuex.Store({
  state: {},
  getters,
  mutations: {},
  actions: {},
  // 子模块
  modules: {
    user,
    setting
  }
})

export default store
